package com.yc.cloud.common.message.sms.dto.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.Pattern;
import lombok.Data;



@Data
@ApiModel
public class SmsMobileParam {

    @ApiModelProperty(value = "手机号", required = true)
    @NotEmpty(message = "账号不能为空")
    @Pattern(regexp = "^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\\d{8}$", message = "电话号码格式不正确")
    private String to;


    @ApiModelProperty(value = "唯一标识", hidden = true)
    private String smsId;

    @ApiModelProperty(value = "短信模版ID", hidden = true)
    private String templateId;

    @ApiModelProperty(value = "短信内容参数", hidden = true)
    private String[] templateParams;
}
